package dataStructs.huffman;

/**
 * @author Jonny Long
 * @date 2021/3/9 15:46
 */
public class HuffmanNode implements Comparable<HuffmanNode>{
    int value;
    char c;
    HuffmanNode left;
    HuffmanNode right;

    @Override
    public String toString() {
        return "Node{" + "value=" + value + ", c=" + c + '}';
    }

    public HuffmanNode(int value) {
        this.value = value;
    }

    @Override
    public int compareTo(HuffmanNode o) {
        return this.value-o.value;
    }
}
